#include "RenzoTexture.h"
#include "Renzoderer.h"
#include "RenzoTextureManager.h"
#include "RenzoResourceManager.h"

namespace Renzo
{
Texture::Texture(void)
{	
	//resID = createResourceID();
}

Object* Texture::create() {
	return new Texture;
}

Texture::~Texture(void)
{
}

void Texture::initialize(Image* img) {
	image = img;

	// generate a texture ID
	texid		= Renzoderer::instance()->getTextureManager()->genTexID();
	//resID	= createResourceID();
}

Image* Texture::getImage() const {
	return image;
}

/*
ResourceID Texture::createResourceID() {
	return Renzoderer::instance()->getResourceManager()->genResourceID(RESOURCE_TYPE_TEXTURE);
}*/

}
